import java.util.*;

// 动物类
class Animal {
    private String name;
    private String category;
    private String features;
    private String diet;
    private String reproduction;

    public Animal(String name, String category, String features, String diet, String reproduction) {
        this.name = name;
        this.category = category;
        this.features = features;
        this.diet = diet;
        this.reproduction = reproduction;
    }

    // Getters and Setters
    // ...

    @Override
    public String toString() {
        return "Animal{" +
                "name='" + name + '\'' +
                ", category='" + category + '\'' +
                ", features='" + features + '\'' +
                ", diet='" + diet + '\'' +
                ", reproduction='" + reproduction + '\'' +
                '}';
    }
}

// 动物园类
class Zoo {
    private Map<String, String> animalCategories;
    private List<Animal> animals;

    public Zoo() {
        this.animalCategories = new HashMap<>();
        this.animals = new ArrayList<>();
    }

    public void addAnimalCategory(String category, String description) {
        animalCategories.put(category, description);
    }

    public void removeAnimalCategory(String category) {
        animalCategories.remove(category);
    }

    public void addAnimal(Animal animal) {
        animals.add(animal);
    }

    public void removeAnimal(Animal animal) {
        animals.remove(animal);
    }

    // 其他管理方法...

    @Override
    public String toString() {
        return "Zoo{" +
                "animalCategories=" + animalCategories +
                ", animals=" + animals +
                '}';
    }
}

// 主程序
public class ZooManagementSystem2 {
    public static void main(String[] args) {
        Zoo zoo = new Zoo();

        // 添加动物分类
        zoo.addAnimalCategory("Mammals", "Animals that give birth to live young");
        zoo.addAnimalCategory("Reptiles", "Cold-blooded animals with scales");
        zoo.addAnimalCategory("Birds", "Feathered animals with beaks");

        // 添加动物信息
        Animal lion = new Animal("Lion", "Mammals", "Golden mane, powerful roar", "Carnivorous", "Viviparous");
        Animal snake = new Animal("Snake", "Reptiles", "Long and slithery", "Carnivorous", "Oviparous");
        zoo.addAnimal(lion);
        zoo.addAnimal(snake);

        System.out.println("Zoo Information:");
        System.out.println(zoo);
    }
}